<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>

</head>
<body>
	<script type="text/javascript">
	
for (var i = 1; i <= 4 ; i++) {
	for (var a = 1; a <= 4 ; a++) {
		for (var b = 1; b <= 4 ; b++){
			if (i != a && i != b && a !=b) {
				document.write(i,a,b);
				document.write("<br/>");
			};
		}
	};
};

	</script>
</body>
</html>